@extends('common.base-master')

@section('html-head')
    <script src="{{url('js/entrer_details.js')}}"></script>
    <link href="{{url('css/bootstrap.min.css')}}" type="text/css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="{{url('css/entrer_details.css')}}">
@endsection

@section('html-body')
    <main>
        <div class="wrapp">
            <section class="headConten">
                <h1>机构详情</h1>
                <div class="user">
                    <dl>
                        <dt><a href="#"><img src="{{route('Api.Photo.Show',['id'=>$userId])}}" width="100" height="100"
                                        /></a></dt>
                        <dd class="info">
                            <p><a href="#"><strong>@if($user->userInfo){{$user->userInfo->realname}}@endif</strong></a></p>
                            <p class="desc">@if($user->userInfo){{$user->userInfo->user_desc}}@endif</p>
                            <P class="school"><em></em>@if($user->userInfo){{$user->userInfo->edu_school}}@endif</P>
                        </dd>
                        <dd class="test">
                            <div class="share_wrap">
                                <a href="#" class="share">分享</a>
                                {{--<a href="#" class="focus">关注</a>--}}
                                <div class="iBtn bdsharebuttonbox">
                                    <ul>
                                        <li class="qq"><a href="#" style="float: none; background:none;padding-left:0;margin:0;width:100%;height:40px;" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间" ><em>分享到QQ</em></a></li>
                                        <li class="weibo"><a href="#" style="float: none; background:none;padding-left:0;margin:0;width:100%;height:40px;" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"><em>分享到新浪</em></a></li>
                                        <li class="weixin"><a href="#" style="float: none; background:none;padding-left:0;margin:0;width:100%;height:40px;" class="bds_weixin" data-cmd="weixin" title="分享到微信"><em>分享到微信</em></a></li>
                                        <li class="txweibo"><a href="#" style="float: none; background:none;padding-left:0;margin:0;width:100%;height:40px;" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"><em>分享到腾讯</em></a></li>
                                    </ul>
                                    <button>取消</button>
                                    <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"http://a.pgzhe.com/images/logo_t.png","bdStyle":"0","bdSize":"24"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
                                </div>
                            </div>
                            <!--<button class="pro_btn">提交项目</button>-->
                        </dd>
                    </dl>
                </div>
            </section>
            <div class="mod">
                <section class="table-list">
                    <div class="case">
                        <h2><em>创业经历</em></h2>
                        <div class="list">
                            <!-- 输入内容 -->
                            <ul>
                                @foreach($user->userCreate as $userCreate)

                                <li>
                                    <dl>
                                        <dt>
                                            <a href="#"><img src="{{route('Api.CreateProjectLogo.Show' ,['id' => $userCreate->project_id])}}" /></a>
                                        </dt>
                                        <dd class="commpany">
                                            <p class="name"><a href="#"><strong>{{$userCreate->company}}</strong></a></p>
                                            <p><em>{{$userCreate->position}}</em><time>{{date('Y-m',strtotime($userCreate->start_time))}} -
                                                    {{date('Y-m',strtotime($userCreate->end_time))}}</time></p>
                                        </dd>
                                    </dl>
                                </li>
                                @endforeach

                            </ul>
                        </div>
                    </div>

                    <!-- 工作经历 -->
                    <div class="team">
                        <h2><em>工作经历</em></h2>
                        <div class="contain">
                            <ul>
                                @foreach($user->userWork as $userWork)
                                <li>
                                    <dl>
                                        <dt>
                                            <a href="#"><img src="{{route('Api.WorkProjectLogo.Show' , ['id'=>$userWork->logo_id])}}" /></a>
                                        </dt>
                                        <dd class="commpany">
                                            <p class="name"><a href="#"><strong>{{$userWork->company}}</strong></a></p>
                                            <p><em>{{$userWork->position}}</em><time>{{date('Y-m',strtotime($userWork->start_time))}} -
                                                    {{date('Y-m',strtotime($userWork->end_time))}}</time></p>
                                        </dd>
                                    </dl>
                                </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </section>
                <section class="details">
                    <h2><em>创业信息</em></h2>
                    <div class="contain">
                        <ul>
                            <li>创业领域：
                                @if($projectId = $user->getProjectByUserId($userId)->id)
                                   @if($fields = $user->getFieldsByProjectId($projectId))
                                       @foreach($fields as $field)
                                            <em>{{$field}}</em>
                                        @endforeach
                                   @endif
                                @endif
                                </li>
                            <li>工作角色：<em>
                                @if($projectId = $user->getProjectByUserId($userId)->id)
                                    {{$user->getPositionByProjectId($projectId)}}
                                @endif
                                       </em></li>
                            <li>所在地：<em>{{$user->getProjectByUserId($userId)->province}} , {{$user->getProjectByUserId($userId)->city}}</em></li>
                            <li class="concat">联系方式：<a href="#" class="weixin1"></a><a href="#" class="weibo1"></a><a href="#" class="maimai1"></a></li>
                        </ul>
                    </div>
                </section>
            </div>
        </div>
        <div class="p_pos createProject">
            <!--单选1-->
            <div>
                <p>您还没有项目，现在去创建吧！</p><p>
                    <a href="createpro_f.html"><button>创建项目</button></a>
                    <em class="close"></em>
                </p>
            </div>
            <!--单选2-->
            <div class="p_pos_s" style="display: none;">
                <p>申请融资</p>
                <select>
                    <option>美丽说</option>
                    <option>磨菇街</option>
                </select><br>
                <button>提交项目</button>
                <em class="close"></em>
            </div>
        </div>
        <div class="mirror">123</div>
    </main>
@endsection
